com.supermap.ar
Class Point3D
- java.lang.Object
-
- com.supermap.ar.Point3D
-
public class Point3D extends java.lang.ObjectAR scene 3D point
-
-
Constructor Summary
Constructors Constructor and Description Point3D()Construction methodPoint3D(float x, float y, float z)create a 3D pointPoint3D(Point3D p)create a 3D point
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidadd(float x, float y, float z)set point coordinatevoidadd(Point3D p)add 3D pointvoidcopy(Point3D out)copy the point coordinate to a new objectfloat[]getCoordinatesArray()Get the point coordinates, stored in the array in x, y, z ordervoidset(float x, float y, float z)set point coordinatejava.lang.StringtoString()Get the point coordinates as a string, get in x, y, z order
-
-
-
Constructor Detail
-
Point3D
public Point3D(float x, float y, float z)create a 3D point- Parameters:
x- x axisy- y axisz- z axis
-
Point3D
public Point3D(Point3D p)
create a 3D point- Parameters:
p- 3D point
-
Point3D
public Point3D()
Construction method
-
-
Method Detail
-
set
public void set(float x, float y, float z)set point coordinate- Parameters:
x- x coordinatey- y coordinatez- z coordinate
-
add
public void add(float x, float y, float z)set point coordinate- Parameters:
x- x coordinatey- y coordinatez- z coordinate
-
add
public void add(Point3D p)
add 3D point- Parameters:
p- 3D point
-
getCoordinatesArray
public float[] getCoordinatesArray()
Get the point coordinates, stored in the array in x, y, z order- Returns:
- point coordinates
-
toString
public java.lang.String toString()
Get the point coordinates as a string, get in x, y, z order- Overrides:
toStringin classjava.lang.Object- Returns:
- point coordinates
-
copy
public void copy(Point3D out)
copy the point coordinate to a new object- Parameters:
out- new point object
-
-